﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.Serialization;

namespace Chaliy.DbPro.Generators.TextAuthoring
{
	[Serializable]
	public class TextAuthorException : Exception
	{
		#region Constructors

		public TextAuthorException()
		{
		}

		public TextAuthorException(string message)
			: base(message)
		{
		}

		public TextAuthorException(string message, Exception inner)
			: base(message, inner)
		{
		}

		protected TextAuthorException(SerializationInfo info, StreamingContext context)
			: base(info, context)
		{
		}

		#endregion

		#region Methods

		internal static TextAuthorException CreateSamplesCanNotBeEmpty()
		{
			return new TextAuthorException(
				Resources.SamplesCanNotBeEmptyMessage
				);
		}

		internal static TextAuthorException CreateTermsCanNotBeEmpty()
		{
			return new TextAuthorException(
				Resources.TermsCanNotBeEmptyMessage
				);
		}

		#endregion
	}
}
